package com.yidi.system.service;

import com.yidi.common.core.domain.AjaxResult;
import com.yidi.common.core.service.BaseService;
import com.yidi.system.domain.SysPost;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author ：Xn
 * @ClassName: SysPostService
 * @date ：2021-10-19 14:11
 * @describe ：
 */
public interface SysPostService extends BaseService<SysPost> {

    Page<SysPost> findByPage(Integer pageNo, Integer pageSize, SysPost post);

    String checkPostNameUnique(SysPost post);

    String checkPostCodeUnique(SysPost post);

    void updatePost(SysPost post);

    AjaxResult deletePostByIds(Long[] ids);

    Integer countUserPostById(Long postId);

    List<Long> selectPostListByUserId(Long userId);

    List<SysPost> selectPostsByUserName(String userName);
}
